/**
 * 判断是否登录
 * @returns
 */
export const isLogin = () => sessionStorage.getItem('token');

/**
 * 设置token
 * @param {*} token
 * @returns
 */
export const setToken = (token) => sessionStorage.setItem('token', token);

/**
 * 清除sessionStorage
 * @returns
 */
export const removeToken = () => sessionStorage.removeItem('token');
export const serverUrl = 'http://localhost:1337';